import java.util.Scanner;
import java.util.Arrays;
public class Main {
    public static void main(String[] args) {
        System.out.println("请输入数组长度:");
        Scanner input = new Scanner(System.in);
        int x = input.nextInt();
        int[] arr=RandomArray.array(x);
        System.out.println("排序前:");
        System.out.println(Arrays.toString(arr));
//        QuickSort.quickSort(arr);
        arr=MergeSort.mergeSort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
